﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PlanDetailSum_Year.ascx.cs"
    Inherits="Thksoft.UserCotrols.PlanDetailSum_Year" %>

<script type="text/javascript">
    var option = {};
    option.CancelCallback = function (index, layero) {
        //刷新页面
        $("#btnSelect").click();
    };

    function projectShow_Year(proId) {
        var year = $("#<%=HiddenField4.ClientID%>").val();
        if (proId == 0) {
            return;
        }
        var option = {};
        option.Url = "/Module/ProjectDetails/BankList_ProjectDetails.aspx?ISTRUE=SUM_YEAR&PRO_ID=" + proId + "&YEAR=" + year;
        option.Area = ['850px', '500px'],
            option.Title = "年资金计划申请表_银行流水详情";
        top.MessageBox.Load(option);
    }
</script>
<asp:Panel ID="Panel1" runat="server">
    <table id="print_div" width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td style="text-align: center; font-size: 16px; font-weight: bold; height: 30px;">
                <asp:Label ID="lblyear" runat="server" />
                年资金计划
            </td>
        </tr>
        <tr>
            <td>
                <div style="float: left; width: 100%;">
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
                        <tr>
                            <td style="width: 100px; padding-right: 3px; text-align: right;">填报单位：
                            </td>
                            <td style="text-align: left; padding-left: 3px;">
                                <asp:Label ID="lbldw" runat="server" />
                            </td>
                            <td></td>
                            <td style="width: 100px;">计量单位：万元
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <style type="text/css">
                    .cont_listZJ td.left {
                        text-align: left;
                        padding-left: 8px;
                        text-indent: 0px;
                    }

                    .cont_listZJ td.right {
                        text-align: right;
                        padding-right: 8px;
                    }
                </style>
                <asp:GridView ID="gvMonthFunds" runat="server" Width="99.5%" CssClass="cont_listZJ" AutoGenerateColumns="False"
                    OnRowDataBound="gvMonthFunds_RowDataBound">
                    <Columns>
                        <asp:TemplateField HeaderText="编号" HeaderStyle-Width="87" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:Label ID="lblProID" runat="server" Text='<%#Eval("n_proid") %>'></asp:Label>
                                <asp:Label ID="lbltype" runat="server" Text='<%#Eval("n_type") %>' Visible="false"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="c_proname" HeaderText="项目名称" ItemStyle-CssClass="left" />
                        <asp:TemplateField HeaderText="计划审核资金" ItemStyle-CssClass="right">
                            <ItemTemplate>
                                <%# Utility.Helper.HtmlHelper.QyFormat(Eval("n_amount")) %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="年度各周审核资金" ItemStyle-CssClass="right">
                            <ItemTemplate>
                                <%# Utility.Helper.HtmlHelper.QyFormat(Convert.ToDecimal(Eval("N_AMOUNT_WEEK"))) %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="已支付金额" ItemStyle-CssClass="right">
                            <ItemTemplate>
                                <%# Utility.Helper.HtmlHelper.QyFormat(Eval("N_USEAMOUNT_WEEK")) %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="流出（入）率" ItemStyle-CssClass="right">
                            <ItemTemplate>
                                <%# Eval("N_AMOUNTPROBABILITY") %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="c_remark" HeaderText="备注" ItemStyle-CssClass="left" />
                        <asp:TemplateField HeaderText="流水详情" ItemStyle-Width="45px" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <img <%#Eval("N_TYPE").ToString()=="2"?"":"class='hide'" %> src="/Images/XiangXi.png" style="width: 16px; height: 16px;"
                                    onclick='projectShow_Year(<%#Eval("n_proid") %>);' title="查看详细" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <EmptyDataTemplate>
                        没有你所查询的数据
                    </EmptyDataTemplate>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td style="text-align: center; height: 30px;">
                <span style="float: left; padding-right: 10px;">编制依据及事由：<asp:Label ID="lblBzyj" runat="server" /></span>
                <span style="float: inherit;">申请人：<asp:Label ID="lblUser" runat="server" /></span>
                <span style="float: right; padding-right: 10px;">申请时间：<asp:Label ID="lblTime" runat="server" /><input
                    type="hidden" runat="server" id="Hidden1" /></span>
            </td>
        </tr>
        <tr>
            <td style="text-align: center;">
                <input type="hidden" runat="server" id="hidId" />
            </td>
        </tr>
    </table>
    <div>
        <asp:HiddenField runat="server" ID="HiddenField4" />
        <asp:HiddenField runat="server" ID="FORM_PRINT_VALUE" />
        <script>
            $(function () {
                $("#<%=this.FORM_PRINT_VALUE.ClientID %>").val($("#print_div").html());
            });
        </script>
    </div>
</asp:Panel>